﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <%:SiteResource.Title() %></title>
    <%="<meta name=\"Keywords\" content=\"" + SiteResource.KeyWord() + "\" />\r\n"%>
    <%="<meta name=\"Description\" content=\"" + SiteResource.Description() + "\" />\r\n"%>
    <link href="/content/css/usercenter.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="/Scripts/library.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/plug.js" charset="GB2312"></script>
    <script type="text/javascript">
        function CloseWindow() {
            this.close();
        }
        function Attention(id) {
            if (confirm('您确定将此简历加入您的人才库？')) {
                $.ajax({
                    url: '/Home/NewTalent',
                    data: { id: id },
                    type: 'post',
                    success: function (result) {
                        if (result == 1) {
                            alert('已成功添加至人才库');
                        }
                    }
                });
            }
        }
        function PopFrame() {
            var popframe = new plug.PopFrame();
            popframe.OpenFrame('pop', 'btnClose');
        }
    </script>
    <style type="text/css">
        .left-label
        {
            width: auto;
            padding-left: 0px;
        }
    </style>
</head>
<body>
    <div class="content">
        <div id="pop" style="display: none; width: 300px; height: 400px;">
            什么是人才库 <a href="javascript:;" id="btnClose">关闭</a>
        </div>
        <div class="content-line-hspace">
        </div>
        <div class="content-line">
            <!--右侧工作区-->
            <div style="width: 780px; margin-left: auto; margin-right: auto;">
                <div class="usercenter-main">
                    <%var resume = ViewData["ResumeItem"] as ResumeSheetModel; %>
                    <div class="usercenter-main-topbg">
                    </div>
                    <div class="usercenter-main-content">
                        <div class="toptitle">
                            <%:resume.Title %></div>
                        <div class="usercenter-main-content-title">
                            <div class="usercenter-main-content-title-left">
                                基本信息</div>
                            <div class="usercenter-main-content-title-right">
                                <%if (HttpContext.Current.User.Identity.IsAuthenticated && new UserService(HttpContext.Current.User.Identity.Name).GetUser().Role == MemberStatus.Firm)
                                  { %>
                                <a href="javascript:;" onclick="Attention('<%:resume.Id %>')">关注此人</a> <a href="javascript:;"
                                    onclick="PopFrame()">什么是人才库？</a>
                                <%} %>
                            </div>
                        </div>
                        <div class="usercenter-main-content">
                            <div class="left" style="line-height: 200%; width: 70%">
                                <div style="overflow: hidden; width: 100%;">
                                    <div class="left-label" style="overflow: hidden">
                                        姓名：</div>
                                    <div style="overflow: hidden; float: left">
                                        <%:resume.RealName %></div>
                                </div>
                                <div style="overflow: hidden; hidden; width: 100%;">
                                    <div class="left-label" style="overflow: hidden">
                                        性别：</div>
                                    <div style="overflow: hidden; float: left">
                                        <%:resume.Gender.Mapping() %></div>
                                </div>
                                <div style="overflow: hidden; width: 100%;">
                                    <div class="left-label" style="overflow: hidden">
                                        年龄：</div>
                                    <div style="overflow: hidden; float: left">
                                        <%:resume.Age %></div>
                                </div>
                                <div style="overflow: hidden; width: 100%;">
                                    <div class="left-label" style="overflow: hidden">
                                        最高学历(或即将获取的学历)：</div>
                                    <div style="overflow: hidden; float: left">
                                        <%:resume.Degree.Mapping() %></div>
                                </div>
                                <div style="overflow: hidden; width: 100%;">
                                    <div class="left-label" style="overflow: hidden">
                                        就读于(毕业于)：</div>
                                    <div style="overflow: hidden; float: left">
                                        <%:resume.College %></div>
                                </div>
                                <div style="overflow: hidden; width: 100%;">
                                    <div class="left-label" style="overflow: hidden">
                                        目前身份：</div>
                                    <div style="overflow: hidden; float: left">
                                        <%:resume.Status.Mapping() %></div>
                                </div>
                            </div>
                            <div class="right" style="padding-top: 10px">
                                <%string photo = new UserService(resume.UserName).GetUser().Image;
                                  if (string.IsNullOrEmpty(photo))
                                  { %>
                                <img src="/content/images/no-photo.png" width="100px" />
                                <%}
                              else
                              { %>
                                <img src="<%=photo %>" width="100px" />
                                <%} %>
                            </div>
                        </div>
                        <div class="usercenter-main-content-title">
                            <div class="usercenter-main-content-title-left">
                                兼职经历</div>
                        </div>
                        <div class="usercenter-main-content">
                            <div class="left" style="line-height: 200%;">
                                <div style="overflow: hidden;">
                                    <div style="overflow: hidden; width: 700px;">
                                        <%=resume.Experience %></div>
                                </div>
                            </div>
                        </div>
                        <div class="usercenter-main-content-title">
                            <div class="usercenter-main-content-title-left">
                                自我评价</div>
                        </div>
                        <div class="usercenter-main-content">
                            <div class="left" style="line-height: 200%;">
                                <div style="overflow: hidden;">
                                    <div style="overflow: hidden; width: 700px;">
                                        <%=resume.AboutMe %></div>
                                </div>
                            </div>
                        </div>
                        <div class="usercenter-main-content-title">
                            <div class="usercenter-main-content-title-left">
                                联系方式</div>
                        </div>
                        <div class="usercenter-main-content">
                            <div class="left" style="line-height: 200%;">
                                <div style="overflow: hidden; hidden; width: 100%;">
                                    <div class="left-label" style="overflow: hidden">
                                        联系电话：</div>
                                    <div style="overflow: hidden; float: left">
                                        <%:resume.ContactPhone %></div>
                                </div>
                                <div style="overflow: hidden; hidden; width: 100%;">
                                    <div class="left-label" style="overflow: hidden">
                                        电子邮箱：</div>
                                    <div style="overflow: hidden; float: left">
                                        <%:resume.Email %></div>
                                </div>
                                <div style="overflow: hidden; hidden; width: 100%;">
                                    <div class="left-label" style="overflow: hidden">
                                        联系地址：</div>
                                    <div style="overflow: hidden; float: left">
                                        <%:resume.Address %></div>
                                </div>
                            </div>
                        </div>
                        <div class="listbox-item-bottomline">
                        </div>
                        <div class="textboxs" style="text-align: center">
                            <div class="left-label">
                            </div>
                            <div>
                                <a href="javascript:;" onclick="CloseWindow()">
                                    <img src="/content/images/usercenter-return.png" /></a>
                            </div>
                        </div>
                    </div>
                    <div class="usercenter-main-bottombg">
                    </div>
                </div>
            </div>
        </div>
        <!--右侧工作区结束-->
    </div>
</body>
</html>
